<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>订单管理</title>
    <hdjs/>
    <bootstrap/>
    <style type="text/css">
        .plus_minus{
            width: 20px;
        }
    </style>
    <css file="__CONTROL_TPL__/css/css.css"/>
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
            <tr pid=0>
                <td width="30"></td>
                <td> 订单号</td>
                <td>下单时间</td>
                <td>收货人</td>
                <td>总金额</td>
                <td>取票方式</td>
                <td>订单状态</td>
                <td width="200">操作</td>
            </tr>
        </thead>
        <tbody>
            <foreach from="$orderdata" key="$k" value="$v">
                <tr >
                    <td width="30"><a href="javascript:;" class="btn btn-primary btn-xs plus_minus">+</a></td>
                    <td>{$v.ordernumber}</td>
                    <td>{$v.ordertime}</td>
                    <td>{$v.name}</td>
                    <td>{$count}</td>
                    <!-- 取票方式 -->
                    <if value="{$v.spstatu} eq 0">
                    <td>电子票</td>
                    <elseif value="{$v.spstatu} eq 2">
                    <td>快递</td>
                    <elseif value="{$v.spstatu} eq 3">
                    <td>自取</td>
                    </if>
                    <!-- 订单状态  -->
                    <if value="{$v.stadus} eq 0">
                    <td>未付款</td>
                    <elseif value="{$v.stadus} eq 1">
                    <td>已付款</td>
                    <elseif value="{$v.stadus} eq 2">
                    <td>已发货</td>
                     <elseif value="{$v.stadus} eq 3">
                    <td>已收货</td>
                    </if>
                    <td width="250">
                        <a href="{|U:'Order/handle'}" class="btn btn-primary btn-xs">设置订单状态</a>
                    <if value="{$v.stadus} eq 0">
                        <a href="javascript:;" class="btn btn-info btn-xs">等待付款</a>
                        <elseif value="{$v.stadus} eq 1">
                        <a href="{|U:'Order/email_goods',array('orderid'=>$v['orderid'])}" class="btn btn-info btn-xs">发货</a>
                        <elseif value="{$v.stadus} eq 2">
                        <a href="javascript:;" class="btn btn-info btn-xs">等待用户确认</a>
                         <elseif value="{$v.stadus} eq 3">
                        <a href=":;" class="btn btn-info btn-xs">完成</a>
                     </if>
                        <a href="javascript:;" class="btn btn-danger btn-xs" onclick="if(confirm('确定删除吗？')) location.href='{|U:'Category/del'}'">删除</a>
                    </td>
                </tr>
            </foreach>
        </tbody>
    </table>
    <div class="page_hdjob">
        
    </div>
</div>

</body>
</html>


